{% extends "base.html" %}

{% load comments %}
{% load staticfiles %}

{% block title %}DAMN - index{% endblock %}

{% block left %}
  <div class="row">
    <div class="span4">
      <h5>Recent comments</h5>
      <ul class="comments">
      {% for comment in comments %}
        <li><a href="{% get_comment_permalink comment "#c%(id)s-by-%(user_name)s"%}">{{ comment.content_object.display_name }}</a> by {{ comment.user }}</li>
      {% empty %}
        <li>No comments</li>
      {% endfor%}
      </ul>
  
    </div>
  </div>
  <div class="row">
    <div class="span4">
      <h5>Recently favored</h5>
      <ul class="favorites">
      {% for favorite in favorites %}
        <li><a href="{{ favorite.content_object.get_absolute_url }}">{{ favorite.content_object.display_name }}</a> by {{ favorite.user }}</li>
      {% empty %}
        <li>No favorites</li>
      {% endfor%}
      </ul>
    </div>
  </div>
  <div class="row">
    <div class="span4">
      <h5>Recent collections</h5>
      None
    </div>
  </div>
{% endblock %}


{% block right %}

  <ul class="media-grid">
  {% for asset in assets %}
    <li>
      {% include "snippets/smallpreview.html" with asset=asset only %}
    </li>
  {% endfor%}
  </ul>
  
  <div class="row">
    <div class="span12">
      <h5>News</h5>
      <div style="width: 100%; border: solid 1px #ccc;"></div>
    </div>
  </div>
  {% load comments %}
  {% for entry in blogs %}
    <div class="row">
        {% get_comment_count for entry as comment_count %}
        {% include "snippets/entry_summary.html" %}
    </div>
  {% endfor %}

{% endblock %}
